Comments for MEDB 5501, Week 5

Diet data dictionary, 1 of 3

data_dictionary: diet.txt

source:
  This data file is part of the Data and 
  Story library, an archive of various
  data sets useful for teaching.
  The entire archive is at
  https://dasl.datadescription.com/

description:
  This data set shows side effects of specially
  prepared diet crackers. A more detailed
  description is available at
  https://dasl.datadescription.com/datafile/diet/
  

Diet data dictionary, 2 of 3

download:
  https://dasl.datadescription.com/download/data/3163
  
copyright:  
  Unknown. You should be able to use this data for
  individual educational purposes under the Fair Use
  guidelines of U.S. copyright law.

format: 
  delimiter: tab
  varnames: first row of data
  missing-value-code: not needed
  rows: 51
  columns: 2

Diet data dictionary, 3 of 3

vars:
  Bloat:
    label: Did the patient experience bloating?
    format: string

  Cracker:
    label: Type of cracker
    format: string

Figure 1: SPSS Data View

Figure 2: SPSS Chart Builder, stacked bar chart, before adding variables

Figure 3: SPSS Chart Builder, stacked bar chart, after adding variables

Figure 4: SPSS output, original (default) bar chart

Figure 5: SPSS Properties dialog box, options menu

Figure 6: SPSS Properties dialog box, Categories tab

Figure 7: SPSS Properties dialog box, Number Format tab

Figure 8: SPSS Properties dialog box, Fill & Border tab

Figure 9: SPSS output, modified bar chart

Break 1

  • What have you learned?
    • Creating and modifying stacked bar chart
  • What’s coming next
    • Titanic data, stacked bar chart

Titanic data dictionary, 1 of 3

data_dictionary: titanic.txt

description:
  Mortality among passengers of the Titanic
  http://www.statsci.org/data/general/titanic.html

download:
  http://www.statsci.org/data/general/titanic.txt
  http://www.pmean.com/15/images/day2titanic.txt

Titanic data dictionary, 2 of 3

vars:
  Name:
    label: Passenger name
  
  PClass:
    label: Passenger class
    scale: ordinal text categories
    values: 1st, 2nd, 3rd
    
  Age:
    unit: years
    scale: positive real
    missing: NA

Titanic data dictionary, 3 of 3

  Sex:
    scale: nominal text categories
    values: female, male

  Survived:
    scale: binary integer categories
    values:
      yes: 1
      no: 0 

Figure 10: SPSS Data View

Figure 11: SPSS Chart Builder, stacked bar chart

Figure 12: SPSS Properties dialog box, Fill & Border tab

Figure 13: SPSS Properties Dialog Box, Number Format tab

Figure 14: SPSS output, modified bar chart

Break 2

  • What have you learned?
    • Titanic data, stacked bar chart
  • What’s coming next
    • Housing data, scatterplot

Housing data dictionary, 1

source: 
  This file was found originally at a website 
  DASL (Data And Story Library) that is no 
  longer available. 

description:  
  The original source describes the data as
  "a random sample of records of resales of 
  homes from Feb 15 to Apr 30, 1993 from the
  files maintained by the Albuquerque Board 
  of Realtors. This type of data is 
  collected by multiple listing agencies in
  many cities and is used by realtors as an
  information base."

Housing data dictionary, 2

copyright:  
    Unknown. You should be able to use this data for
  individual educational purposes under the Fair Use
  guidelines of U.S. copyright law.

format: 
  delimiter: space
  varnames: first row of data
  missing-value-code: *
  rows: 117
  columns: 8

Housing data dictionary, 3

vars:
  Price:
    label: Selling price
    unit: dollars
    
  SquareFeet:
    label: Living space
    unit: square feet
    
  AgeYears:
    label: Age of home
    unit: years

Housing data dictionary, 4

  NumberFeatures:
    label: 
      Home features (dishwasher, refrigerator,
      microwave, disposer, washer, intercom, 
      skylight(s), compactor, dryer, handicap
      fit, cable TV access)
    scale: count
    range: 0 to 11  
    
  Northeast:
    label: Located in northeast sector of city?
    values:
      Yes: 1
      No: 0

Housing data dictionary, 5

  CustomBuild:
    label: Custom built?
    values:
      Yes: 1
      No: 0
    
  CornerLot:
    label: Corner location?
    values:
      Yes: 1
      No: 0

  Tax:
    label: Yearly property tax
    unit: dollars

Figure 15: SPSS Variable View with default choices

Figure 16: SPSS Variable View, updated

Figure 17: SPSS chart builder dialog box

Figure 18: SPSS Properties dialog box, Scale tab

Figure 19: SPSS Properties dialog box, Number Format tab

Figure 20: SPSS Properties dialog box. Labels & Ticks tab

Figure 21: SPSS Chart Editor, Options menu

Figure 22: SPSS Properties dialog box

Break 3

  • What have you learned?
    • Housing data, scatterplot
  • What’s coming next
    • Housing data, boxplot

Figure 23: SPSS Chart Builder, scatterplot with colors

Figure 24: SPSS output

Figure 25: SPSS chart builder

Figure 26: SPSS

Figure 27: SPSS chart builder

Figure 28: SPSS output

Figure 29: SPSS Properties dialog box

Figure 30: SPSS options menu

Figure 31: SPSS Properties dialog box

Figure 32: SPSS Properties dialog box

Figure 33: SPSS output

Figure 34: SPSS output

Figure 35: SPSS output

Figure 36: SPSS chart builder

Figure 37: SPSS output